package com.cat.service.common.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cat.dao.common.RoleDao;
import com.cat.entity.TbRole;
import com.cat.service.common.RoleService;

@Service
public class RoleServiceImpl extends BaseServiceImpl<TbRole, Integer> implements RoleService {

	@Resource
	private RoleDao roleDao;

	@Resource
	public void setBaseDao(RoleDao roleDao) {
		super.setBaseDao(roleDao);
	}

	@Override
	public List<TbRole> getRoleList(TbRole role) {
		
		return roleDao.getRoleList(role);
	}

	@Override
	public TbRole checkRole(TbRole role) {
		// TODO Auto-generated method stub
		return roleDao.checkRole(role);
	}
	
}
